<?php
namespace common\services\user;

use common\models\UserModel;

class UserResourceService extends UserModel
{
    static public function getAll(){
        $displayFields = [
            'id',
            'country_code',
            'mobile',
            'nickname',
            'avatar',
            'status',
            'created_at',
            'updated_at',
        ];
        return self::find()->select($displayFields)->all();
    }
}